<?php

function setOgPicture($slika) {
	echo '<meta property="og:image" content="'.$slika.'"/>';

}

if (isset($_GET['page'])) {
	switch($_GET['page']) {
		case "home": setOgPicture ("http://www.basketliganis.org/template/images/logo.png"); break;
		case "article": { $a = new Article($_GET['id']); setOgPicture("http://www.basketliganis.org/media/vesti/thumbs/".$a->slika); } break;
		default: 
	}
}
else {
	setOgPicture("http://www.basketliganis.org/template/images/logo.png");
}

?>